/**
 * @description blog数据模型
 * @author chengpeng
 */

const seq = require('../seq')
const {
    STRING,
    DECIMAL,
    TEXT,
    INTEGER,
    BOOLEAN
} = require('../types')

// blog
const Blog = seq.define('blog', {
    userId: {
        type: INTEGER,
        allowNull: false,
        comment: '用户 id'
    },
    content: {
        type: TEXT,
        allowNull: false,
        comment: '内容'
    },
    image: {
        type: STRING,
        comment: '图片地址'
    }
})

module.exports = Blog